package controller_admin

import (
	"github.com/doujunyu/gogo/job"
	"go_self/server"
)

// OrderByList 订单列表
func OrderByList(j *job.Job) {
	input := make(map[string]string)
	input["status"] = j.Input["status"]
	input["page"] = j.Input["page"]
	input["page_size"] = j.Input["page_size"]
	data := server.OrderByList(input)
	if len(data) == 0 {
		j.JsonSuccess()
		return
	}
	j.JsonSuccess(data)
	return
}

// OrderBySendGoods 订单发货
func OrderBySendGoods(j *job.Job){
	input := make(map[string]string)
	input["order_child_id"] = j.Input["order_child_id"]
	input["logistics_no"] = j.Input["logistics_no"]
	input["logistics_name"] = j.Input["logistics_name"]
	err := server.OrderBySendGoods(input)
	if err != nil {
		j.JsonError(nil,err.Error())
		return
	}
	j.JsonSuccess()
	return


}








